class M79ClusterWBomblet extends WeakNadeW;

function TakeDamage( int Damage, Pawn InstigatedBy, Vector Hitlocation, Vector Momentum, class<DamageType> damageType, optional int HitIndex)
{
	if ( Monster(instigatedBy) != none || instigatedBy == Instigator )
	{
        if( damageType == class'SirenScreamDamage')
        {
            Disintegrate(HitLocation, vect(0,0,1));
        }
	}
}

simulated function Explode(vector HitLocation, vector HitNormal)
{
//    local PlayerController  LocalPlayer;
    local Projectile P;
    local byte i;

	bHasExploded = True;
	BlowUp(HitLocation);

	PlaySound(ExplodeSounds[rand(ExplodeSounds.length)],,2.0);

	// Shrapnel
	for( i=Rand(6); i<10; i++ )
	{
		P = Spawn(ShrapnelClass,,,,RotRand(True));
		if( P!=None )
			P.RemoteRole = ROLE_None;
	}
    if ( EffectIsRelevant(Location,false) )
    {
        Spawn(class'M79ClusterWEmitter',,,HitLocation + HitNormal*20,rotator(HitNormal));
        Spawn(ExplosionDecal,self,,HitLocation, rotator(-HitNormal));
    }

    BlowUp(HitLocation);
    Destroy(); 
	
}

defaultproperties
{
     ExplodeTimer=2.500000
     Speed=600.000000
     MaxSpeed=600.000000
     DamageRadius=480.000000
     MomentumTransfer=100.000000
     StaticMesh=StaticMesh'kf_generic_sm.Bullet_Shells.40mm_Warhead'
     DrawScale=5.000000
     Skins(0)=TexEnvMap'SCTextures.ReflectionEnv'
}
